Add Docker setup, display top ranked HN stories, and add recommendation features.#81
Open
bryanbrunetti wants to merge 1 commit intofscbco:mainfrom
Open
Add Docker setup, display top ranked HN stories, and add recommendation features.#81bryanbrunetti wants to merge 1 commit intofscbco:mainfrom
bryanbrunetti wants to merge 1 commit intofscbco:mainfrom
Conversation
- Introduced a `.env` file and sample for environment configuration. - Updated `.gitignore` to exclude JetBrains IDE configs and Postgres Docker data. - Created `Dockerfile` for setting up Ruby, Node.js, and Yarn in a Docker environment. - Added `vcr` and `webmock` gems to Gemfile for testing, and updated Gemfile.lock accordingly. - Implemented a `PagesController` action to redirect signed-in users to the stories view. - Created `RecommendationsController` and `StoriesController` to handle recommendations and story views. - Added `Recommendation`, `Story`, and `StoryRanking` models with corresponding migrations for tracking user story preferences. - Added job `HackernewsJob` to fetch top stories from Hacker News and update rankings. - Enhanced `application.html.erb` layout with navigation links for authenticated users. - Updated `pages/home.html.erb` to include login and sign-up links. - Added views for displaying top stories and recommendations. - Introduced Docker entrypoint script for initializing the database and starting the server. - Modified `database.yml` and environment files to support Docker-based development. - Updated `routes.rb` to define routes for viewing stories, recommendations, and managing user recommendations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.envfile and sample for environment configuration..gitignoreto exclude JetBrains IDE configs and Postgres Docker data.Dockerfilefor setting up Ruby, Node.js, and Yarn in a Docker environment.vcrandwebmockgems to Gemfile for testing, and updated Gemfile.lock accordingly.PagesControlleraction to redirect signed-in users to the stories view.RecommendationsControllerandStoriesControllerto handle recommendations and story views.Recommendation,Story, andStoryRankingmodels with corresponding migrations for tracking user story preferences.HackernewsJobto fetch top stories from Hacker News and update rankings.application.html.erblayout with navigation links for authenticated users.pages/home.html.erbto include login and sign-up links.database.ymland environment files to support Docker-based development.routes.rbto define routes for viewing stories, recommendations, and managing user recommendations.